<?php require_once($_SERVER['DOCUMENT_ROOT'] . '/static/db/connect.php');
preg_match('/^\/(\d+).tn/', $_SERVER['PATH_INFO'], $arr);
if (@$fe_id = intval($arr[1])) {
    $total_tem = $mysqli->query("select count(0) from $tableName");
    $total = $total_tem->fetch_row()[0];
    $total_tem->close();
    if ($fe_id >= $total) {
        $fe_id = $total;
        $fa_ope = " fa-anchor ";
    } else {
        $fa_ope = " fa-arrow-right ";
        $next_num = $fe_id + 1;
    }
    $sql = " select $cols from $tableName WHERE id = $fe_id ";
    $mysqli_result = $mysqli->query($sql);
    $info = $mysqli_result->fetch_assoc();
    $mysqli_result->close();
} else {
    echo "<script language='javascript' type='text/javascript'>location.replace('$reUrl');</script>";
    exit;
}
$mysqli->close();